package com.hj.dapp.business.craft.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hj.dapp.business.craft.model.Craft;
import com.hj.dapp.common.request.PageRequest;
import org.springframework.stereotype.Service;

import java.security.Principal;
import java.util.List;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2024/1/22
 */
@Service
public interface CraftService {
    Craft get(Long id);

    IPage<Craft> page(PageRequest<Craft> pageRequest);

    void delete(Long id);

    void save(Craft craft, Principal principal);

    void edit(Craft craft, Principal principal);

    List<Craft> list(Craft craft);

}
